package com.dong.design.bridge;

/**
 * 桥接模式
 * 将抽象和实现分离，可以画各种颜色的圆
 *
 * @author jianyang206881
 * @date 2018/6/8
 */
public class BridgePatternDemo {
    public static void main(String[] args) {
        Shape redCircle = new Circle(100, 100, 10, new RedCircle());
        Shape greenCircle = new Circle(100, 100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}
